package com.yunji.framework_template.books.orm.persistence.mapper;

import com.yunji.framework_template.books.orm.persistence.model.BooksTypeRelation;
import com.yunji.framework_template.common.web.Page;
import java.util.List;

public interface BooksTypeRelationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BooksTypeRelation record);

    int insertSelective(BooksTypeRelation record);

    BooksTypeRelation selectByPrimaryKey(Integer id);
    
    List<BooksTypeRelation> selectByBookId(Integer bookId);
    
    List<BooksTypeRelation> selectByTypeId(Integer typeId);

    int updateByPrimaryKeySelective(BooksTypeRelation record);

    int updateByPrimaryKey(BooksTypeRelation record);

    List<BooksTypeRelation> selectByCondition(BooksTypeRelation record);

    List<BooksTypeRelation> selectAll();

    List<BooksTypeRelation> selectByPage(Page page);

    Integer count(BooksTypeRelation record);

    int deleteByCondition(BooksTypeRelation record);

    BooksTypeRelation selectByBookIdTypeId(BooksTypeRelation record);
}